PATHMac OS 8 and 9 Developer Documentation > Networking and Communications > URL Access Manager >

Transferring Files With the URL Access Manager


URLAbort

Terminates a data transfer.

OSStatus URLAbort (URLReference urlRef);
urlRef
A reference of type URLReference that identifies the URL for which you want to terminate a data transfer.
function result
A result code. For a list of possible result codes, see Result Codes .

DISCUSSION

The URLAbort function terminates a data transfer that was started by URLOpen . When your application calls URLAbort , the URL Access Manager changes the state returned by URLGetCurrentState URLGetCurrentState to kURLAbortingState . If you provided an event notification routine, the URL Access Manager calls it and passes kURLAbortInitiatedEvent to it.

When the data transfer is terminated, the URL Access Manager changes the state returned by URLGetCurrentState URLGetCurrentState to kURLCompletedState . If you provided an event notification routine, the URL Access Manager calls it and passes kURLCompletedEvent to it.


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)